package com.tueye.entity;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 
 * 文章评论表 与文章的对应关系是 one to many
 * 
 * @author hanxiaowei
 * 
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "tueye_topiccomment")
public class TopicComment extends BaseEntity {

	private String commentPeople;
	private String content;
	private Topics topic;

	public String getCommentPeople() {
		return commentPeople;
	}

	public void setCommentPeople(String commentPeople) {
		this.commentPeople = commentPeople;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@ManyToOne
	public Topics getTopic() {
		return topic;
	}

	public void setTopic(Topics topic) {
		this.topic = topic;
	}

}